package proxy.d.extend;

import proxy.d.jdk.Buyer;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/11/27  20:11
 */
public class Client {
    public static void main(String[] args) {
    //1.使用factory的方法获取代理对象
        Buyer buyer = IntermediaryJDKProxyFactory.create(new RealBuyer());
    //2.调用方法
        String result = buyer.look();
        System.out.println(result);
    }
}
